﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace BVision
{
    public partial class DlgInput : Form
    {
        public DlgInput()
        {
            InitializeComponent();
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            if (this.txtInput.Text.Trim() == "")
            {
                MessageBox.Show("Operation cancelld");
                this.DialogResult = DialogResult.Cancel;
            }
        }

        public string InputText
        {
            get { return txtInput.Text.Trim(); }
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
        }
    }
}
